package cate.common.table.hallow.row;

import cate.common.table.EExcelNoteField;
import cate.common.table.EExcelRowClass;
import cate.common.table.ERow;
import org.apache.commons.lang3.StringUtils;

import java.util.ArrayList;
import java.util.List;
@EExcelRowClass
public class HallowBaseRow extends ERow {
    @EExcelNoteField(fieldName = "解锁任务")
    private String taskStr;

    public List<Integer> taskList;

    @Override
    public void decode() {
        super.decode();
        taskList = new ArrayList<>();
        if (StringUtils.isNotBlank(taskStr)) {
            for (String s : taskStr.split("#")) {
                taskList.add(Integer.valueOf(s));
            }
        }
    }
}
